{extend name="index/index" /}
{block name="main"}
{js href="/static/index/js/jquery.min.js"}
<!-- Start right content -->

<!---->
<div class="content-page">

    <div class="content">

        <div class="page-heading">
            <h1><i class='fa fa-table'></i>文章管理</h1>
            <h3>文章详情</h3></div>

        <div class="row">

            <div class="col-md-12">
                <div class="widget">

                    <div class="widget-content">
                        <div class="table-responsive">
                            <table  class="table" border="0">
                                <tr>
                                    <th class="col-md-2">文章ID号</th>
                                    <td>{$list.art_id}</td>
                                </tr>
                                <tr>
                                    <th>文章标题</th>
                                    <td>{$list.artname}</td>

                                </tr>
                                <tr>
                                    <th>文章发表时间</th>
                                    <td>{$list.arttime}</td>

                                </tr>
                                <tr>
                                    <th>所属栏目</th>
                                    <td>{$data.colname}</td>

                                </tr>
                                <tr>
                                    <th>收获喜欢</th>
                                    <td>{$list.artlove}</td>

                                </tr>
                                <tr>
                                    <th>收获讨厌</th>
                                    <td>{$list.artbrowse}</td>

                                </tr>
                                <tr>
                                    <th>文章内容</th>
                                    <td>
                                        <!-- <img  class="img-responsive" src='/static/upload/{$list.artpic}'> -->
                                         {$list.artcontent} 
                                         
                                         <img id="img"  class="img-responsive" src='/static/upload/{$list.artpic}'>  
                                         <!-- {$list.artcontent}  -->

                                    </td>

                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- Footer Start -->
    </div>
</div>
<!-- End right content -->


<script type="text/javascript">
    
        var img = $('#img').attr('src');
        var imgstr = img.substr('15');
        if(imgstr.length==0){
                $('#img').attr('style','display: none;');
        }

</script>

{/block}